package com.yuxiang.flowable.result;

import lombok.Getter;

/**
 * @author : yx-0176
 * @description
 * @date : 2022/3/9
 */
public enum ResultCode {

    /**
     * 请求成功
     */
    SUCCESS(200, "SUCCESS"),
    FAILURE(500, "FAILURE"),

    ;

    @Getter
    private int code;
    @Getter
    private String message;

    private ResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }
}

